.user-card {
  color: var(--deep-gray);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  .user-card-inner {
    border-radius: inherit;
    overflow: hidden;
    background-color: #fff;
    width: 350px;
    .user-card-top {
      height: 100px;
      position: relative;
      .user-card-top-cover {
        height: 100%;
        background-image: url("@/assets/user.jpg");
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        filter: blur(30px);
      }
      .user-card-top-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        .user-card-top-avg {
          width: 55px;
          height: 55px;
          background-image: url("@/assets/user.jpg");
          background-size: cover;
          background-position: center 25%;
          background-repeat: no-repeat;
          border-radius: 50%;
          overflow: hidden;
          margin-right: 10px;
          box-shadow: 0 8px 8px rgba(0, 0, 0, 0.2);
        }
        .user-card-top-name {
          flex: 1;
          display: flex;
          flex-direction: column;
          justify-content: center;
          letter-spacing: 1px;
          .name {
            font-size: 19px;
            font-weight: 600;
          }
          .school {
            font-size: 12px;
          }
        }
      }
    }
    .user-card-middle {
      max-height: 400px;
      overflow-y: auto;
      overflow-x: hidden;
      &::-webkit-scrollbar {
        width: 5px;
      }
      &::-webkit-scrollbar-thumb {
        width: 5px;
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 5px;
      }
      .user-card-mid-base {
        animation: fadein ease-in-out 1 forwards 0.6s;
        font-size: 13px;
        padding: 20px;
        color: var(--letter-gray);
        font-family: "DM Sans", sans-serif;
        .user-card-mid-base-item {
          margin-bottom: 16px;
          display: flex;
          justify-content: space-between;
          align-items: center;
          &:last-child {
            margin-bottom: 0;
          }
          .icon {
            width: 30px;
            height: 34px;
            margin-right: 12px;
            flex-shrink: 0;
            border-right: 1px solid #dfe2ec;
            display: flex;
            justify-content: center;
            align-items: center;
            img {
              width: 60%;
              height: 60%;
            }
          }
          .text {
            flex: 1;
          }
        }
      }
      .user-card-mid-study {
        animation: fadein ease-in-out 1 forwards 0.6s;
      }
      .user-card-mid-intro {
        display: flex;
        justify-content: center;
        align-items: center;
        animation: fadein ease-in-out 1 forwards 0.6s;
        .intro-content {
          width: 100%;
          box-sizing: border-box;
          padding: 20px;
          font-size: 14px;
          line-height: 1.6;
          color: var(--letter-gray);
          text-align: justify;
          text-align-last: left;
        }
      }
    }
    .user-card-down {
      height: 50px;
      display: flex;
      justify-content: space-between;
      color: var(--letter-gray);
      font-size: 13px;
      -webkit-user-select: none;
      cursor: pointer;
      position: relative;
      .user-card-down-item {
        height: 100%;
        flex: 1;
        text-align: center;
        line-height: 50px;
        background: #fff;
        transition: background .3s ease-in-out;
        &.active {
          background: linear-gradient(
            to bottom,
            rgba(127, 199, 231, 0) 0%,
            rgba(207, 204, 255, 0.2) 44%,
            rgba(211, 226, 255, 0.4) 100%
          );
        }
      }
      .user-card-line {
        position: absolute;
        bottom: 0;
        transition: left 0.3s ease-in-out;
        left: 0;
        width: 33.3%;
        height: 3px;
        background: linear-gradient(
          to right,
          rgba(83, 200, 239, 0.8) 0%,
          rgba(81, 106, 204, 0.8) 96%
        );
      }
    }
    @keyframes fadein {
      0% {
        opacity: 0;
        transform: translateY(40px);
      }
      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }
  }
}
